package com.gwnet.cabinet.enums;

/**
 * @author: WangLiang
 * @date: 2024/7/23 15:06
 */
public enum CertTypeEnum {

    OPEN_PWD(9,"传入收集后四位/取件码"),

    MEMBER_PHONE(10,"完整手机号");

    private Integer code;
    private String desc;

    CertTypeEnum(Integer code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public Integer code() {
        return code;
    }

    public String desc() {
        return desc;
    }

    public static CertTypeEnum instance(Integer value) {
        CertTypeEnum[] enums = values();
        for (CertTypeEnum statusEnum : enums) {
            if (statusEnum.code().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
